const pxtorem = require('postcss-pxtorem')
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  css: {
    loaderOptions: {
      postcss: {
        postcssOptions: {
          plugins: [
            pxtorem({
              rootValue: 75,
              propList: ['*', '!font*'],
              selectorBlackList: ['van'],
            }),
          ],
        },
      },
    },
  },
  devServer: {
    port: 9528,
    proxy: {
      // 反向代理
      '/niuma': {
        target: 'https://mobile.gome.com.cn',
      },
    },
  },
})
